<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'center',border:false">
		<!-- Begin of toolbar -->
		<div id="produce-toolbar">

			<div class="produce-toolbar-button">
				<a href="#" class="easyui-linkbutton" iconCls="icon-add" dialog-options="url:'${root!}/system/produce/openadd',style:'width: 400px; padding: 10px;'" onclick="common_save(this)"
					plain="true">添加</a>
					<a href="#" class="easyui-linkbutton editbtn" iconCls="icon-edit" dialog-options="url:'${root!}/system/produce/openadd',style:'width: 400px; padding: 10px;',src:'${root!}/system/produce/edit'" onclick="common_save(this)"
					plain="true">修改</a>
					 <a href="#" class="easyui-linkbutton"
					iconCls="icon-remove" onclick="common_del(this)"  dialog-options="url:'${root!}/system/produce/delete'" plain="true">删除</a> <a href="#"
					class="easyui-linkbutton" iconCls="icon-reload" onclick="common_refresh(this)" plain="true">刷新</a>
			</div>
			<div class="produce-toolbar-search">
				<form id="produce-search-form" method="post">
					<label>产品名称：</label><input name="produce.produceName"
						class="wu-text" style="width: 100px"> <a href="#"
						class="easyui-linkbutton" onclick="produce_reload()"
						iconCls="icon-search">查询</a>
				</form>
			</div>

		</div>
		<!-- End of toolbar -->
		<table id="produce-datagrid" class="easyui-datagrid" toolbar="#produce-toolbar"></table>
	</div>
</div>
<!-- Begin of easyui-dialog -->
<div id="produce-add-dialog" class="easyui-dialog"
	data-options="closed:true,iconCls:'icon-save'"
	style="width: 400px; padding: 10px;">
	
</div>
<!-- End of easyui-dialog -->
<script type="text/javascript">

	/**
	 * Name 载入数据
	 */
	$('#produce-datagrid').datagrid({
		url : 'system/produce/getdata',
		rownumbers : true,
		singleSelect : false,
		pageSize : 10,
		pagination : true,
		multiSort : true,
		fitColumns : true,
		fit : true,
		columns : [ [ {
			checkbox : true
		}, {
			field : 'id',
			title : '产品编号',
			hidden : true,
			width : 100,
			sortable : true
		}, {
			field : 'produceName',
			title : '产品名称',
			width : 100,
			sortable : true
		}, {
			field : 'alertNum',
			title : '产品数量警戒线(KG)',
			width : 100,
			sortable : true
		}, {
			field : 'alertTime',
			title : '产品存放时长警戒线(天)',
			width : 100,
			sortable : true
		}

		] ]
	});
</script>